home *** CD-ROM | disk | FTP | other *** search
- onClipEvent(load){
- function light_up(c_name, global_pos)
- {
- if(global_pos > 0)
- {
- var i = 0;
- while(i < country_ray.length)
- {
- eval(country_ray[i] + "_mov").gotoAndStop(1);
- if(i != country_ray.length - 1)
- {
- eval(country_ray[i] + "_" + country_ray[i + 1])._visible = 0;
- }
- else
- {
- eval(country_ray[i] + "_" + country_ray[0])._visible = 0;
- }
- i++;
- }
- var i = 0;
- while(i <= Math.floor(global_pos / 2800))
- {
- eval(country_ray[i] + "_mov").gotoAndStop(2);
- if(i != country_ray.length)
- {
- eval(country_ray[i - 1] + "_" + country_ray[i])._visible = 1;
- }
- else
- {
- eval(country_ray[i - 1] + "_" + country_ray[0])._visible = 1;
- }
- i++;
- }
- }
- }
- var country_ray = new Array();
- var i = _parent.offset_c;
- while(i < _parent.offset_c + _parent.country_ray.length)
- {
- country_ray[i - _parent.offset_c] = _parent.country_ray[i % _parent.country_ray.length];
- i++;
- }
- var i = 0;
- while(i < country_ray.length)
- {
- if(i != country_ray.length - 1)
- {
- eval(country_ray[i] + "_" + country_ray[i + 1])._visible = 0;
- }
- else
- {
- eval(country_ray[i] + "_" + country_ray[0])._visible = 0;
- }
- i++;
- }
- }
-